import {createStore, applyMiddleware} from 'redux';
import {createLogger} from 'redux-logger';
import rootReducer from '../reducer/reducer';

const loggerMiddleware = createLogger();

const store = createStore(
    rootReducer,
    {comments: []},
    applyMiddleware(loggerMiddleware)
);
export default store;
